<template>
    <div class="nav-bar">
        <text class="nav-bar-text">{{title}}</text>
    </div>
</template>

<style scoped>
    .nav-bar {
        position: absolute;
        left: 0;
        top: 0;
        width: 1080px;
        height: 80px;
        padding-left: 30px;
        padding-right: 30px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background-color: #f2f2f2;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .nav-bar-text {
        font-size: 30px;
        color: #313131;
        lines: 1;
        text-overflow: ellipsis;
        font-family: msyhl;
    }
</style>

<script>
    export default{
        props: {
            title: {
                type: String,
                default: '标题'
            }
        }
    }
</script>
